import { Injectable } from '@angular/core';
import { people } from './mockData';
import { person } from './person';
@Injectable()
export class DataService {
  allPeople: person[];
  person: person;
  getPeopleData(): void {
    this.allPeople =  people;
  }
  getPersonData(): void {
    this.person =  people[0];
  }
  constructor() { }

}
